package com.dog.basics.bean.dto.admin.mtkj;

import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import javax.validation.constraints.Max;
import javax.validation.constraints.Min;
import javax.validation.constraints.NotNull;

/**
 * @description: 轮椅定制命令
 * @author: He
 * @date: Created in 2020/10/14 12:22
 * @version: 1.0
 * @modified By:
 */
@Data
@ApiModel(value = "轮椅定制命令")
public class WheelchairTreatyDto {

    /**
     * 消息类型 : 14-开锁测试 15-查询轮椅状态（锁状态）
     */
    @ApiModelProperty(value = "消息类型 [14-开锁测试 15-查询轮椅状态（锁状态）]", dataType = "Integer", required = true)
    @NotNull(message = "消息类型不能为空")
    @Min(value = 14, message = "消息类型只支持[开锁测试丶查询轮椅状态]")
    @Max(value = 15, message = "消息类型只支持[开锁测试丶查询轮椅状态]")
    private Integer msgType;

    /**
     * 设备标识
     */
    @ApiModelProperty(value = "设备标识", dataType = "Long", required = true)
    @NotNull(message = "设备标识不能为空")
    @Min(value = 2, message = "设备标识长度[2-20]")
    @Max(value = 20, message = "设备标识长度[2-20]")
    private Long devId;

    /**
     * 锁通道号
     */
    @ApiModelProperty(value = "锁通道号", dataType = "Long")
    @Min(value = 2, message = "锁通道号长度[2-20]")
    @Max(value = 20, message = "锁通道号长度[2-20]")
    private Long lockportId;

}